import time
import datetime
import calendar


# time模块，就分为时间戳，本地时间，世界标准时间
print("time stamp:", time.time())  # 时间戳：1479193181.829338
print("local time:", time.localtime())  # struct_time类型的本地时间
print("utc time:", time.gmtime())  # struct_time类型的utc时间

# 各种时间形式的转化
time_stamp = time.time()
#
local_time = time.localtime()
print(local_time)
utc_time = time.gmtime()
print(utc_time)

